package com.bachongLightNovel.system;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @author vermouth
 */

@FeignClient(value = "bachong-light-novel-system")
public interface ISystemUserClient {

    @GetMapping("/api/system/user/feign/get-userId")
    List<Long> getUserIdByUsername(@RequestParam String auditUser);

    /**
     * 根据用户id查询用户名
     * @param userId:
     * @return String
     * @author vermouth
     */
    @GetMapping("/api/system/user/feign/get-username")
    String getUsernameById(@RequestParam Long userId);
}
